<div class="container-fluid p-t-15">
		<div class="row">
			<div class="col-lg-12">
				<div class="card">
					<div class="card-body">
						<form id="resourceForm" class="form-horizontal validate">
							<input type="hidden" name="url" th:value="${resource?.url}"/>
							<input type="hidden" name="id" th:value="${resource?.id}"/>
							<input th:if="${pid != null}" type="hidden" name="parentResourceId" th:value="${pid}" />
					         <div class="form-group">
								<label class="col-md-2 control-label">名称</label>
								<div class="col-md-4 validateDiv">
									<input class="form-control" name="name" type="text"
										data-rule-required="true" data-rule-rangelength="2,20"
										autocomplete="off" placeholder="名称" th:value="${resource?.name}" />
									
								</div>
								
								<label class="col-md-2 control-label">代码</label>
								<div class="col-md-4 validateDiv">
									<input class="form-control" name="code" type="text"
										data-rule-required="true" data-rule-rangelength="2,20"
										autocomplete="off" placeholder="代码" th:value="${resource?.code}"/>
										
								</div>
							</div>		
							<div class="form-group">
								<label class="col-md-2 control-label">类型</label>
								<div class="col-md-4 validateDiv">
									<select id="type" name="type" kjlink:pcode="resourceType" th:data-value="${resource?.type}"
										 data-option="请选择" class="form-control" data-rule-required="true"></select>
									
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">描述</label>
								<div class="col-md-10 validateDiv">
									<textarea rows="3" cols="" name="memo" class="form-control" th:text="${resource?.memo}"></textarea>
								</div>
							</div>							
						</form>
					</div>
				</div>	
			</div>
		</div>
</div>
<script type="text/javascript">
	$nojs.selectValueInitialization.init();
</script>
